/**
 * Create by yxk at 2020/6/15
 */
import request from '@/utils/request'

/**
 * 出库单新建/编辑
 */
export function jxcOutboundAddOrUpdateAPI(data) {
  return request({
    url: 'jxcOutbound/addOrUpdate',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 出库单详情
 */
export function jxcOutboundQueryByIdAPI(data) {
  return request({
    url: `jxcOutbound/queryById/${data.label}`,
    method: 'post',
    data: data
  })
}

/**
 * 出库单作废
 */
export function jxcOutboundSetStateByIdsAPI(data) {
  return request({
    url: 'jxcOutbound/setStateByIds',
    method: 'post',
    data: data
  })
}

/**
 * 查询可出库的产品
 */
export function jxcOutboundQueryEdProductListAPI(data) {
  return request({
    url: 'jxcOutboundProduct/queryEdOutboundProductList',
    method: 'post',
    data: data
  })
}

/**
 * 查询出库单下的产品
 */
export function jxcOutboundQueryProductListAPI(data) {
  return request({
    url: 'jxcOutboundProduct/queryOutboundProductList',
    method: 'post',
    data: data
  })
}
